<?php
require_once "../common/mysqlConnection.php";


$conn = getMysqlConnection();

//添加
$trucker_id = "A10011";
$Name = "张三";
$plateNumber = "B22222";
$email = "zhangsan@cam.com";
$route = "Route1";
$password = "123456";

$sql = "INSERT INTO trucker (trucker_id, last_name, first_name, plate_number, email, route, password) 
VALUES ('$trucker_id','$Name','$plateNumber','$email','$route','$password')";

if ($conn->query($sql) === TRUE) {
    echo "新增卡车司机成功{insert\_element\_0\_}";
} else echo "新增失败: " . $conn->error;
